/*
 * Copyright (c) 2018-2999 九五云信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.dto.PageAnalysisDto;
import com.yami.shop.bean.model.FlowLog;
import com.yami.shop.bean.model.FlowPageAnalysis;
import com.yami.shop.bean.model.FlowUserAnalysis;
import com.yami.shop.bean.param.FlowAnalysisParam;
import com.yami.shop.bean.param.ProdAnalysisSurveyParam;
import com.yami.shop.bean.param.VisitorTopParam;
import com.yami.shop.common.util.PageParam;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 流量分析—页面数据统计表
 *
 * @author YXF
 * @date 2020-07-14 11:26:35
 */
public interface FlowPageAnalysisService extends IService<FlowPageAnalysis> {

    void getPageDataByLog(Map<String, List<FlowLog>> flowLogMap, Date dateTime, Map<String, FlowUserAnalysis> flowUserAnalysisMap);

    IPage<PageAnalysisDto> getPageOrProdAnalysis(PageParam<PageAnalysisDto> page, FlowAnalysisParam flowAnalysisParam);

    IPage<VisitorTopParam> getVisitorTop(IPage<FlowPageAnalysis> page, ProdAnalysisSurveyParam prodAnalysisSurveyParam);
}
